import { createPinia } from "pinia";
import piniaPersist from "pinia-plugin-persist";
import { shareStorePlugin } from "./plugins/shareStoreByActionPlugin";

const pinia = createPinia();

// 添加状态共享插件
pinia.use(shareStorePlugin);
pinia.use(piniaPersist);

export default pinia;
